﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrikaziGradovi.aspx.cs" Inherits="PrikaziGradovi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Label ID="label1" runat="server" Text="База на градови"></asp:Label>
    <asp:GridView ID="GridView1" runat="server"  AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" DataKeyNames="IdGrad" DataSourceID="AccessDataSource1" EnableModelValidation="true">
    <Columns>
    <asp:BoundField DataField="IdGrad" HeaderText="Број  на град" SortExpression="IdGrad" />
    <asp:BoundField DataField="ImeGrad" HeaderText="Име на град" SortExpression="ImeGrad" />
    <asp:BoundField DataField="TaksaGrad" HeaderText="Такса за град" SortExpression="TaksaGrad" />
    </Columns>
    </asp:GridView>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Baza/Gradovi.accdb" SelectCommand="SELECT * FROM [Gradovi]"></asp:AccessDataSource>

        <asp:Button ID="Button1" runat="server" Text="Назад кон менито" 
            onclick="Button1_Click" Width="117px" />
    </div>
    </form>
</body>
</html>
